package com.red.wood.module.eval.service.impl;

import java.util.List;
import java.util.Map;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.red.wood.module.eval.dao.ApplicationFileDao;
import com.red.wood.module.eval.service.ApplicationFileService;

@Service
@Transactional
public class ApplicationFileServiceImple implements ApplicationFileService{

	@Autowired
	private ApplicationFileDao applicationFileDao;
	
	@Override
	public void addBatch(List<Map<String, Object>> paramList) {
		applicationFileDao.addBatch(paramList);
	}

	@Override
	public void delete(String singleTaskId, String type) {
		applicationFileDao.delete(singleTaskId, type);
	}

	@Override
	public List<Map<String, Object>> getBySingleTaskId(String singleTaskId) {
		return applicationFileDao.getBySingleTaskId(singleTaskId);
	}

	@Override
	public long add(Map<String, Object> map) {
		return applicationFileDao.add(map);
	}

	@Override
	public long getCountBySingleTaskId(String singleTaskId, String type) {
		return applicationFileDao.getCountBySingleTaskId(singleTaskId, type);
	}

	@Override
	public Map<String, Object> getById(String id) {
		return applicationFileDao.getById(id);
	}

}
